<?php
class EventManager_Form_Shift_Base extends SF_Form_Abstract{
	public function init(){

		$this->addElementPrefixPath(
			'EventManager_Validate',
		APPLICATION_PATH . '/modules/eventManager/models/validate',
			'validate'
			);
		$this->addPrefixPath(
			'EventManager_Form_Element',
			APPLICATION_PATH.'/modules/eventManager/forms/element',	
			'element'
		);
		$this->getView()->addScriptPath(APPLICATION_PATH.'/modules/eventManager/forms/element');
		
		
		$this->addElement('date','sft_startdate', array(
		'filters'	=> array('StringTrim', 'StringToLower'),
		'validators'	=> array(
		array('StringLength',true,array(3,128)),
		),
		'required'	=>	true,
		'label'		=> 'startdatum',
		));
		//einddatum
		$this->addElement('date','sft_enddate', array(
		'filters'	=> array(),
		'validators'	=> array(
		array(),
		),
		'required'	=>	true,
		'label'		=> 'einddatum',
		));
		
		$this->addElement('time','evt_starttime', array(
		'filters'	=> array(),
		'validators'	=> array(
		array('StringLength',true,array(3,128)),
		),
		'required'	=>	false,
		'label'		=> 'Begintijd',
		));
		//eindtijd
		$this->addElement('time','evt_endtime', array(
		'filters'	=> array(),
		'validators'	=> array(
		array(),
		),
		'required'	=>	false,
		'label'		=> 'Eindtijd',
		));
	}

}